package com.coocaa.internship.dao;

import com.coocaa.internship.pojo.Province;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Description: 省份Dao层
 * @Author: zwh
 * @Date: 2019-07-25
 * @Time: 20:49
 */
@Mapper
@Component
public interface ProvinceDao {
    String TABLE_NAME = "province";
    String SELECT_FILEDS = "province_id , province_name";

    @Select({"select ",SELECT_FILEDS," from ",TABLE_NAME})
    List<Province> selectAllProvinces();
}
